package qing.controller.cms;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import qing.common.des;
import qing.entity.Person;
import qing.service.personService;

@Controller
@RequestMapping("/cms")
public class MainController {

	@Autowired
	private personService personService;	
	

	//发送导航菜单数据
	@RequestMapping(value="index")
	public String index(HttpServletRequest request,Map<String, Object> map) {		
		map.put("deptname", "测试部");
		map.put("name", "测试员");
		return "cms/index";		
	}


}
